﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GtsServer.Model
{
    public class NewDeliveryMould
    {
        public NewDeliveryMould()
        { }
        #region Model
        private int _id;
        private int? _communicationid;
        private string _newstype;
        private string _newstitle;
        private string _newscontent;
        private int? _priority;
        private DateTime? _starttime;
        private DateTime? _endtime;
        private DateTime? _createtime;
        private int? _state;
        private int? _deliverynum;
        private string _communicationName;
        private int _deliveryType;

        public int DeliveryType
        {
            get { return _deliveryType; }
            set { _deliveryType = value; }
        }
        /// <summary>
        /// 市场名称（Communication的名称）
        /// </summary>
        public string CommunicationName
        {
            get { return _communicationName; }
            set { _communicationName = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 市场
        /// </summary>
        public int? CommunicationID
        {
            set { _communicationid = value; }
            get { return _communicationid; }
        }
        /// <summary>
        /// 类型
        /// </summary>
        public string NewsType
        {
            set { _newstype = value; }
            get { return _newstype; }
        }
        /// <summary>
        /// 标题
        /// </summary>
        public string NewsTitle
        {
            set { _newstitle = value; }
            get { return _newstitle; }
        }
        /// <summary>
        /// 内容
        /// </summary>
        public string NewsContent
        {
            set { _newscontent = value; }
            get { return _newscontent; }
        }
        /// <summary>
        /// 优先级
        /// </summary>
        public int? Priority
        {
            set { _priority = value; }
            get { return _priority; }
        }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartTime
        {
            set { _starttime = value; }
            get { return _starttime; }
        }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime
        {
            set { _endtime = value; }
            get { return _endtime; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 1为开启，0为结束
        /// </summary>
        public int? State
        {
            set { _state = value; }
            get { return _state; }
        }
        /// <summary>
        /// 推送人数
        /// </summary>
        public int? DeliveryNum
        {
            set { _deliverynum = value; }
            get { return _deliverynum; }
        }
        #endregion Model

    }
    public class NewDeliveryMouldShow : NewDeliveryMould
    {
        /// <summary>
        /// 状态名字
        /// </summary>
        private string _stateName;

        public string StateName
        {
            get { return _stateName; }
            set { _stateName = value; }
        }
    
    }
}
